package bz;

public class Demo {
    public static void main(String[] args) {
        BaoZi bz = new BaoZi();
        BaoZiPu bzp1 = new BaoZiPu();
        bzp1.setName("生产者1");
        BaoZiPu bzp2 = new BaoZiPu();
        bzp2.setName("生产者2");
        BaoZiPu bzp3 = new BaoZiPu();
        bzp3.setName("生产者3");

        Customer c1 = new Customer();
        c1.setName("消费者1");
        Customer c2 = new Customer();
        c2.setName("消费者2");
        Customer c3 = new Customer();
        c3.setName("消费者3");

        bzp1.start();
        c1.start();
        bzp2.start();
//        c2.start();
        bzp3.start();
//        c1.start();
        c2.start();
        c3.start();
    }
}
